import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

import '@/styles/index.scss' // global css

import App from './App'
import router from './router'
import store from './store'

import './icons' // icon
import './errorLog' // error log
import './permission' // permission control
// import './mock' // simulation data
import qUtil from "./utils/queryUtil"
import baseUtil from "./utils/baseUtil";

import * as filters from './filters' // global filters
import './assets/iconfont/iconfont.css'
import global from './config/global'

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import  VueQuillEditor from 'vue-quill-editor'


import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)
Vue.use(Antd)

Vue.prototype.qUtil = qUtil;
Vue.prototype.baseUtil = baseUtil;
Vue.prototype.BASE_API = global.BASE_API;
Vue.prototype.WX_API_URL = global.WX_API_URL;
Vue.prototype.UPLOAD_URL = global.UPLOAD_URL;
// register global utility filters.
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
